#ifndef MYTHREAD_H
#define MYTHREAD_H
#include<QThread>
#include <QObject>
#include<iostream>
#include<QSemaphore>
const int datasize=100;
const int buffersize=10;



class produce : public QThread
{
    Q_OBJECT
public:
    explicit produce(QObject *parent = nullptr);

signals:

protected:
    void run();

};


class consumer : public QThread
{
    Q_OBJECT
public:
    explicit consumer(QObject *parent = nullptr);

signals:
protected:
    void run();

};
#endif // MYTHREAD_H
